home *** CD-ROM | disk | FTP | other *** search
/ PD Collection CD 1 / PD Collection CD 1.iso / programer2 / pari2 / pari / other / Makefile_r < prev    next >
Makefile  |  1991-10-09  |  3KB  |  139 lines

  1. # General Makefile UNIX gp versions
  2.  
  3. # Change these installation directories to suit your needs
  4.  
  5. LIBDIR = /usr/local/lib
  6. BINDIR = /usr/local/bin
  7. INCLUDEDIR = /usr/include/pari-include
  8.  
  9. CC = gcc
  10.  
  11. # if you use CC=gcc, you must add -traditional in the compilation options
  12. # of plot.o. You can also (if you want to debug gp yourself) add the -g
  13. # option in CFLAGS. However, remember that, while gcc accepts -g and -O
  14. # simultaneously, cc does not.
  15.  
  16. CFLAGS = -g -O -c
  17.  
  18. OBJS=mp.o anal.o alglin1.o alglin2.o base.o arith1.o arith2.o bibli1.o bibli2.o elliptic.o es.o gen1.o gen2.o gen3.o init.o errmessages.o helpmessages.o polarit1.o polarit2.o trans1.o trans2.o trans3.o version.o
  19.  
  20. # Be sure to "make clean" before doing a
  21. # make on a different architecture
  22.  
  23. all:    genpari.h gp
  24.  
  25. genpari.h:    genpari68k.h
  26.     rm -f genpari.h;ln -s genpari68k.h genpari.h;
  27.  
  28. gp:    gp.o $(OBJS) plot.o genpari.h
  29.     $(CC) -O -o gp gp.o $(OBJS) plot.o -lm -lsuntool -lsunwindow -lpixrect -lreadline -ltermcap
  30.  
  31. # if you are using XWindows rather than suntools, you should link
  32. # link plot.c to plot.X rather than plot.sun below, and replace the line above by
  33. # cc -O -o gp gp.o $(OBJS) plot.o -lm -lX11
  34.  
  35. mp.o:    mp.s
  36.     $(CC) $(CFLAGS) mp.s
  37.  
  38. gp.o:    gp.c
  39.     $(CC) $(CFLAGS) gp.c 
  40.  
  41. alglin1.o:    alglin1.c
  42.     $(CC) $(CFLAGS) alglin1.c
  43.  
  44. alglin2.o:    alglin2.c
  45.     $(CC) $(CFLAGS) alglin2.c
  46.  
  47. anal.o:    anal.c
  48.     $(CC) $(CFLAGS) anal.c
  49.  
  50. arith1.o:    arith1.c
  51.     $(CC) $(CFLAGS) arith1.c
  52.  
  53. arith2.o:    arith2.c
  54.     $(CC) $(CFLAGS) arith2.c
  55.  
  56. base.o:    base.c
  57.     $(CC) $(CFLAGS) base.c
  58.  
  59. bibli1.o:    bibli1.c
  60.     $(CC) $(CFLAGS) bibli1.c
  61.  
  62. bibli2.o:    bibli2.c
  63.     $(CC) $(CFLAGS) bibli2.c
  64.  
  65. elliptic.o:    elliptic.c
  66.     $(CC) $(CFLAGS) elliptic.c
  67.  
  68. es.o:    es.c
  69.     $(CC) $(CFLAGS) es.c
  70.  
  71. gen1.o:    gen1.c
  72.     $(CC) $(CFLAGS) gen1.c
  73.  
  74. gen2.o:    gen2.c
  75.     $(CC) $(CFLAGS) gen2.c
  76.  
  77. gen3.o:    gen3.c
  78.     $(CC) $(CFLAGS) gen3.c
  79.  
  80. init.o:    init.c
  81.     $(CC) $(CFLAGS) init.c
  82.  
  83. errmessages.o:    errmessages.c
  84.     $(CC) $(CFLAGS) errmessages.c
  85.  
  86. helpmessages.o:    helpmessages.c
  87.     $(CC) $(CFLAGS) helpmessages.c
  88.  
  89. plot.c:    plot.sun
  90.     rm -f plot.c;ln -s plot.sun plot.c
  91.  
  92. # if you are using XWindows, replace plot.sun by plot.X in the two lines above
  93.  
  94. plot.o:        plot.c
  95.     $(CC) -traditional $(CFLAGS) plot.c
  96.  
  97. plotdummy.o:        plotdummy.c
  98.     $(CC) $(CFLAGS) plotdummy.c
  99.  
  100. polarit1.o:    polarit1.c
  101.     $(CC) $(CFLAGS) polarit1.c
  102.  
  103. polarit2.o:    polarit2.c
  104.     $(CC) $(CFLAGS) polarit2.c
  105.  
  106. trans1.o:    trans1.c
  107.     $(CC) $(CFLAGS) trans1.c
  108.  
  109. trans2.o:    trans2.c
  110.     $(CC) $(CFLAGS) trans2.c
  111.  
  112. trans3.o:    trans3.c
  113.     $(CC) $(CFLAGS) trans3.c
  114.  
  115. version.o:    version68k.c
  116.     $(CC) $(CFLAGS) -o version.o version68k.c
  117.  
  118. manual:    tex/users.tex tex/index.tex
  119.      (cd tex;tex users;\
  120.       rm -f users.std;sort -f users.idx > users.std;\
  121.       tex index;rm -f users.idx)
  122.  
  123. install:    plotdummy.o
  124.     install genpari.h $(INCLUDEDIR)
  125.     install gencom.h  $(INCLUDEDIR)
  126.     install gen68k.h  $(INCLUDEDIR)
  127.     install erreurs.h $(INCLUDEDIR)
  128.     ar r libpari.a $(OBJS) plotdummy.o
  129.     install -c libpari.a $(LIBDIR)
  130.     ranlib $(LIBDIR)/libpari.a
  131.     install gp $(BINDIR)
  132.     strip $(BINDIR)/gp
  133.  
  134. clean:    
  135.     -\rm *.o libpari.a gp genpari.h *.log *.dvi *.std *.idx *.toc; \
  136.     (cd tex;rm -f *.log *.dvi *.std *.idx *.toc)
  137.  
  138.  
  139.